<script setup lang="ts">
interface Props {
	title: string;
}
const props = withDefaults(defineProps<Props>(), {});
</script>

<template>
	<header>
		<h1>{{ props.title }}</h1>
		<button class="left-icon">
			<svg class="icon">
				<use href="#arrow-left" />
			</svg>
		</button>
		<button class="right-icon">
			<svg class="icon">
				<use href="#headset" />
			</svg>
		</button>
	</header>
</template>

<style scoped lang="scss">
header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 0.44rem;
	display: flex;
	justify-content: center;
	align-items: center;
	border-bottom: 0.01rem solid #eee;
	background-color: #fff;
	h1 {
		font-size: 0.18rem;
		font-weight: normal;
	}
	.left-icon {
		position: absolute;
		left: 0;
		top: 0;
		width: 0.44rem;
		height: 0.44rem;
	}
	.right-icon {
		position: absolute;
		right: 0;
		top: 0;
		width: 0.44rem;
		height: 0.44rem;
	}
}
</style>
